home *** CD-ROM | disk | FTP | other *** search
- Program DemoFiles;
-
- { Purpose....... Demonstrates the use of the following units: Files
- Comments...... None
- Author........ Thayne Breetzke
- Date.......... 5 April 1994 }
-
- Uses
- Files;
-
- Begin
- If Exists('Sample.txt') then
- Writeln('Sample.txt exists in the current directory')
- else
- Writeln('Can''t find Sample.txt in the current directory');
- Writeln('FileMatch(''DEMOFIL.EXE'',''*.EXE'') = ',FileMatch('DEMOFIL.EXE','*.EXE'));
- Writeln('IsDirectory(''DEMOFIL.EXE'') = ',IsDirectory('DEMOFIL.EXE'));
- Writeln('IsDirectory(''.'') = ',IsDirectory('.'))
- end.
-
-